import request from "@/util/request";

export function getAccountDetailList(userBo) {
  return request({
    url: "/admin/account/user-list",
    method: "get",
    params: userBo,
  });
}

export function getPermissionList(queryBo) {
  return request({
    url: "/admin/account/permission-list",
    method: "get",
    params: queryBo,
  });
}

export function getRoleList(queryBo) {
  return request({
    url: "/admin/account/role-list",
    method: "get",
    params: queryBo,
  });
}

export function simplePermissionCurd(queryBo) {
  return request({
    url: "/admin/account/permission-curd",
    method: "post",
    data: queryBo,
  });
}

export function simpleRoleCurd(queryBo) {
  return request({
    url: "/admin/account/role-curd",
    method: "post",
    data: queryBo,
  });
}

export function simpleAccountCurd(queryBo) {
  return request({
    url: "/admin/account/account-curd",
    method: "post",
    data: queryBo,
  });
}
